import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/page/login/Login'
import Home from '@/page/home/Home'
import Clgl from '@/page/clgl/Clgl'
import Gzg from '@/page/gzg/Gzg'
import Rigth1 from '@/page/right1/Right1'
import Rigth2 from '@/page/right2/Right2'

Vue.use(Router)

export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/',
            name: 'Login',
            component: Login
        },
        {
            path: '/home',
            name: 'Home',
            component: Home,
        },
        {
            path: '/clgl',
            name: 'Clgl',
            component: Clgl
        },
        {
            path: '/gzg',
            name: 'Gzg',
            component: Gzg,
            children: [
                {
                    path: '/',
                    component: Rigth1
                },
                {
                    path: '/gzg/rigth2',
                    component: Rigth2,
                }
            ]
        }
    ]
})
